import { axios } from '@/utils/request'
// 总览
export function overViewDisabledStaff(parameter) {
  return axios({
    url: '/sys/hr/disabled/overViewDisabledStaff',
    method: 'post',
    data: parameter
  })
}
export function overViewDisabledSkill(parameter) {
  return axios({
    url: '/sys/hr/disabled/overViewDisabledSkill',
    method: 'post',
    data: parameter
  })
}
export function overViewDisabledCondolence(parameter) {
  return axios({
    url: '/sys/hr/disabled/overViewDisabledCondolence',
    method: 'post',
    data: parameter
  })
}
export function exportDisabledStaff(parameter) {
  return axios({
    url: '/sys/hr/disabled/exportDisabledStaff',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function overViewDisabledAchievementsByStatus(parameter) {
  return axios({
    url: '/sys/hr/disabled/overViewDisabledAchievementsByStatus',
    method: 'post',
    data: parameter
  })
}
export function overViewDisabledCheckData(parameter) {
  return axios({
    url: '/sys/hr/disabled/overViewDisabledCheckData',
    method: 'post',
    data: parameter
  })
}

// 考勤管理
export function getPageDisabledAttendance(parameter) {
  return axios({
    url: '/sys/hr/disabled/pageDisabledAttendance',
    method: 'post',
    data: parameter
  })
}
export function importDisabledDetail(parameter) {
  return axios({
    url: '/sys/hr/disabled/importDisabledDetail',
    method: 'post',
    data: parameter,
  })
}
export function updateAttendance(parameter) {
  return axios({
    url: '/sys/hr/disabled/updateAttendance',
    method: 'post',
    data: parameter,
  })
}
export function deleteAttendance(parameter) {
  return axios({
    url: '/sys/hr/disabled/deleteAttendance',
    method: 'post',
    data: parameter,
  })
}
export function exportDisabledAttendance(parameter) {
  return axios({
    url: '/sys/hr/disabled/exportDisabledAttendance',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}

// 人员信息管理
export function getPageDisabledCheck(parameter) {
  return axios({
    url: '/sys/hr/disabled/pageDisabledCheck',
    method: 'post',
    data: parameter,
  })
}
export function updateCheck(parameter) {
  return axios({
    url: '/sys/hr/disabled/updateCheck',
    method: 'post',
    data: parameter,
  })
}
export function deleteCheck(parameter) {
  return axios({
    url: '/sys/hr/disabled/deleteCheck',
    method: 'post',
    data: parameter,
  })
}
export function exportDisabledCheck(parameter) {
  return axios({
    url: '/sys/hr/disabled/exportDisabledCheck',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}

// 技能培训记录
export function getPageDisabledAchievements(parameter) {
  return axios({
    url: '/sys/hr/disabled/pageDisabledAchievements',
    method: 'post',
    data: parameter,
  })
}
export function addDisabledAchievements(parameter) {
  return axios({
    url: '/sys/hr/disabled/addDisabledAchievements',
    method: 'post',
    data: parameter,
  })
}
export function updateAchievements(parameter) {
  return axios({
    url: '/sys/hr/disabled/updateAchievements',
    method: 'post',
    data: parameter,
  })
}
export function deleteAchievements(parameter) {
  return axios({
    url: '/sys/hr/disabled/deleteAchievements',
    method: 'post',
    data: parameter,
  })
}
export function selectAchievementsType(parameter) {
  return axios({
    url: '/sys/hr/disabled/selectAchievementsType',
    method: 'post',
    data: parameter,
  })
}
export function exportDisabledAchievements(parameter) {
  return axios({
    url: '/sys/hr/disabled/exportDisabledAchievements',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
// 企业宣传记录
export function getPageDisabledBusiness(parameter) {
  return axios({
    url: '/sys/hr/disabled/pageDisabledBusiness',
    method: 'post',
    data: parameter,
  })
}
export function addBusiness(parameter) {
  return axios({
    url: '/sys/hr/disabled/addBusiness',
    method: 'post',
    data: parameter,
  })
}
export function updateBusiness(parameter) {
  return axios({
    url: '/sys/hr/disabled/updateBusiness',
    method: 'post',
    data: parameter,
  })
}
export function deleteBusiness(parameter) {
  return axios({
    url: '/sys/hr/disabled/deleteBusiness',
    method: 'post',
    data: parameter,
  })
}
export function exportDisabledBusiness(parameter) {
  return axios({
    url: '/sys/hr/disabled/exportDisabledBusiness',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function exportDisabledBusinessImg(parameter) {
  return axios({
    url: '/sys/hr/disabled/exportDisabledBusinessImg',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
// 工作确认
export function getPageDisabledJobConfirmation(parameter) {
  return axios({
    url: '/sys/hr/disabled/pageDisabledJobConfirmation',
    method: 'post',
    data: parameter,
  })
}
export function addDisabledJobConfirmation(parameter) {
  return axios({
    url: '/sys/hr/disabled/addDisabledJobConfirmation',
    method: 'post',
    data: parameter,
  })
}
export function updateJobConfirmation(parameter) {
  return axios({
    url: '/sys/hr/disabled/updateJobConfirmation',
    method: 'post',
    data: parameter,
  })
}
export function deleteJobConfirmation(parameter) {
  return axios({
    url: '/sys/hr/disabled/deleteJobConfirmation',
    method: 'post',
    data: parameter,
  })
}
export function downloadConfirmationFromTemplate(parameter) {
  return axios({
    url: '/sys/hr/disabled/downloadConfirmationFromTemplate',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function excelImportConfirmationData(parameter) {
  return axios({
    url: '/sys/hr/disabled/excelImportConfirmationData',
    method: 'post',
    data: parameter,
  })
}
// 达标任务
export function getPageDisabledTask(parameter) {
  return axios({
    url: '/sys/hr/disabled/task/pageDisabledTask',
    method: 'post',
    data: parameter,
  })
}
export function addTask(parameter) {
  return axios({
    url: '/sys/hr/disabled/task/addTask',
    method: 'post',
    data: parameter,
  })
}
export function updateTask(parameter) {
  return axios({
    url: '/sys/hr/disabled/task/updateTask',
    method: 'post',
    data: parameter,
  })
}
export function deleteTask(parameter) {
  return axios({
    url: '/sys/hr/disabled/task/deleteTask',
    method: 'post',
    data: parameter,
  })
}
export function pageDisabledTaskRelation(parameter) {
  return axios({
    url: '/sys/hr/disabled/task/pageDisabledTaskRelation',
    method: 'post',
    data: parameter,
  })
}
export function importDisabledTaskDetail(parameter) {
  return axios({
    url: '/sys/hr/disabled/task/importDisabledTaskDetail',
    method: 'post',
    data: parameter,
  })
}
export function deleteTaskRelation(parameter) {
  return axios({
    url: '/sys/hr/disabled/task/deleteTaskRelation',
    method: 'post',
    data: parameter,
  })
}
export function pageDisabledOverviewData(parameter) {
  return axios({
    url: '/sys/hr/disabled/task/pageDisabledOverviewData',
    method: 'post',
    data: parameter,
  })
}
export function taskDownTemplate(parameter) {
  return axios({
    url: '/sys/hr/disabled/task/downTemplate',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}

// 获取城市接口
export function getPageArea(parameter) {
  return axios({
    url: '/sys/hr/insureTool/city/pageArea',
    method: 'post',
    data: parameter,
  })
}
export function downTemplate(parameter) {
  return axios({
    url: '/sys/hr/disabled/downTemplate',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function downAchievementsTemplate(parameter) {
  return axios({
    url: '/sys/hr/disabled/downAchievementsTemplate',
    method: 'post',
    data: parameter,
    responseType: 'blob'
  })
}
export function importDisabledAchievements(parameter) {
  return axios({
    url: '/sys/hr/disabled/importDisabledAchievements',
    method: 'post',
    data: parameter,
  })
}
